package cn.home.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.home.service.mapper.HomePerformanceTeamMapper;
import cn.home.service.domain.HomePerformanceTeam;
import cn.home.service.service.IHomePerformanceTeamService;

/**
 * 团队业绩目标Service业务层处理
 * 
 * @author xsc
 * @date 2025-04-09
 */
@Service
public class HomePerformanceTeamServiceImpl implements IHomePerformanceTeamService 
{
    @Autowired
    private HomePerformanceTeamMapper homePerformanceTeamMapper;

    /**
     * 查询团队业绩目标
     * 
     * @param id 团队业绩目标主键
     * @return 团队业绩目标
     */
    @Override
    public HomePerformanceTeam selectHomePerformanceTeamById(Long id)
    {
        return homePerformanceTeamMapper.selectHomePerformanceTeamById(id);
    }

    /**
     * 查询团队业绩目标列表
     * 
     * @param homePerformanceTeam 团队业绩目标
     * @return 团队业绩目标
     */
    @Override
    public List<HomePerformanceTeam> selectHomePerformanceTeamList(HomePerformanceTeam homePerformanceTeam)
    {
        return homePerformanceTeamMapper.selectHomePerformanceTeamList(homePerformanceTeam);
    }

    /**
     * 新增团队业绩目标
     * 
     * @param homePerformanceTeam 团队业绩目标
     * @return 结果
     */
    @Override
    public int insertHomePerformanceTeam(HomePerformanceTeam homePerformanceTeam)
    {
        return homePerformanceTeamMapper.insertHomePerformanceTeam(homePerformanceTeam);
    }

    /**
     * 修改团队业绩目标
     * 
     * @param homePerformanceTeam 团队业绩目标
     * @return 结果
     */
    @Override
    public int updateHomePerformanceTeam(HomePerformanceTeam homePerformanceTeam)
    {
        return homePerformanceTeamMapper.updateHomePerformanceTeam(homePerformanceTeam);
    }

    /**
     * 批量删除团队业绩目标
     * 
     * @param ids 需要删除的团队业绩目标主键
     * @return 结果
     */
    @Override
    public int deleteHomePerformanceTeamByIds(Long[] ids)
    {
        return homePerformanceTeamMapper.deleteHomePerformanceTeamByIds(ids);
    }

    /**
     * 删除团队业绩目标信息
     * 
     * @param id 团队业绩目标主键
     * @return 结果
     */
    @Override
    public int deleteHomePerformanceTeamById(Long id)
    {
        return homePerformanceTeamMapper.deleteHomePerformanceTeamById(id);
    }
}
